Repository navigation
Fix group chat isn't shows in search page after split - #40271
marcochavezf merged 6 commits into
Conversation
|
@mananjadhav Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
|
@bernhardoj The code changes look fine, can you also please upload the videos for the offline mode? I am also tracking this issue to see if it gets resolved with this. I'll work on the checklist myself today. |
|
Here is the video in offline mode, it will fix #39708 Screen.Recording.2024-04-18.at.20.24.25.mov |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-group-chat.movAndroid: mWeb Chromemweb-chrome-group-chat.moviOS: Nativeios-group-chat.moviOS: mWeb Safarimweb-safari-group-chat.movMacOS: Chrome / Safariweb-group-chat_JkeWz8MR.mp4MacOS: Desktopdesktop-group-chat.mov |
|
I tested on web and it worked fine, need to test on all the other platforms. Will finish the checklist today. |
|
@bernhardoj Can you please merge the latest main? I am seeing some weird behavior where the input loses focus on typing. |
|
@mananjadhav merged with main |
mananjadhav
left a comment
There was a problem hiding this comment.
I am having some challenges in running the Android build. Looks like my local machine as I can see the same error in different branches.
Hence, I am going to approve this to move along.
|
I was able to upload the Android video. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.4.67-0 🚀
|
| // Currently, currentUser is not included in visibleChatMemberAccountIDs, so for selfDM we need to add the currentUser as participants. | ||
| const accountIDs = isSelfDM ? [currentUserAccountID ?? 0] : report.visibleChatMemberAccountIDs ?? []; | ||
| // Currently, currentUser is not included in participants, so for selfDM we need to add the currentUser as participants. | ||
| const accountIDs = isSelfDM ? [currentUserAccountID ?? 0] : Object.keys(report.participants ?? {}).map(Number); |
There was a problem hiding this comment.
I think this change is causing a regression here #41138.
Because createOption relies on personalDetailList.length > 1, which is not true for DM's when using participants, since the participants property has everyone in that conversation including the current user.
This also makes the above comment wrongish, for some reason the currentUser is not included as a participant in the selfDM but is included in other chats.
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.67-7 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.67-7 🚀
|
Details
The group chat is not shown in the search page after split because the visibleMemberAccountIDs is empty and also disappears from LHN after switching chat. This PR fix it
Fixed Issues
$ #37519
PROPOSAL: #37519 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-04-16.at.14.54.08.mov
Android: mWeb Chrome
Screen.Recording.2024-04-16.at.14.52.42.mov
iOS: Native
Screen.Recording.2024-04-16.at.14.46.56.mov
iOS: mWeb Safari
Screen.Recording.2024-04-16.at.14.45.21.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-16.at.14.37.41.mov
MacOS: Desktop
Screen.Recording.2024-04-16.at.14.38.36.mov